package design.graduation.novelsystem.model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: 洪少尉
 * @Date: 2020/4/15 00:55
 * @Description: layui表格数据类型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataGridView implements Serializable {
	/**
	 * 状态码
	 */
	private Integer code=0;
	/**
	 * 状态信息
	 */
	private String msg="";
	/**
	 * 数据数量
	 */
	private Long count=0L;
	/**
	 * 数据内容
	 */
	private Object data;

	public DataGridView(Long count, Object data) {
		this.count = count;
		this.data = data;
	}

	public DataGridView(Object data) {
		this.data = data;
	}
}
